package com.enation.app.javashop.core.client.fallback.distribution;

import com.enation.app.javashop.core.client.feignimpl.distribution.WithdrawCountClientFeignImpl;
import com.enation.app.javashop.core.handler.BaseFallbackFactory;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

/**
 * 分销每日结算 fallback factory
 * @author kingapex
 * @version 1.0
 * @data 2022/5/28 14:13
 **/
@Component
public class WithdrawCountClientFallbackFactory extends BaseFallbackFactory<WithdrawCountClientFeignImpl> {
    @Override
    protected WithdrawCountClientFeignImpl fallback() {
        return null;
    }

    /**
     * 分销每日结算
     *
     * @author zh
     * @version v7.0
     * @date 18/9/27 下午12:21
     * @since v7.0
     */
    @Component
    public static class WithdrawCountClientFallback implements WithdrawCountClientFeignImpl {

        private final Logger logger = LoggerFactory.getLogger(getClass());

        @Override
        public void everyDay() {
            logger.error("分销每日结算出错");
        }
    }
}
